package com.example.zhongshuishi.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Pattern;
import lombok.Data;


import java.sql.Timestamp;
import java.util.Date;

/**
 * @author 学生表实体类
 * @version 1.0
 * @description TODO
 * @date 2025/3/29 10:25
 */
@Data
public class StudentDto {
    @ExcelProperty(value = "序号") // 手动添加序号字段
    private int index;
    @ExcelIgnore
    private String id;

    //  @NotBlank(message = "学生姓名不能为空")
    @ExcelProperty("学生姓名")
    private String stuName;
    @ExcelProperty("微信")
    private String weixin;

    // @NotBlank(message = "学生身份证号不能为空")
    // @Pattern(regexp = "^\\d{15}|\\d{18}$", message = "学生身份证号格式不正确")
    @ExcelProperty("身份证号")
    private String stuIdnumber;

    // @NotBlank(message = "工作地点不能为空")
    @ExcelProperty("工作地点")
    private String workplace;

    //@NotBlank(message = "学生电话不能为空")
    // @Pattern(regexp = "^1[3-9]\\d{9}$", message = "学生电话格式不正确")
    @ExcelProperty("电话号码")
    private String stuPhone;

    // @NotBlank(message = "教师不能为空")
    @ExcelProperty("老师姓名")
    private String teacher;

    // @NotBlank(message = "地区不能为空")
    @ExcelProperty("地区")
    private String region;

    //  @NotBlank(message = "城市不能为空")
    @ExcelProperty("城市")
    private String city;
    @ExcelIgnore
    private String photo;
    @ExcelIgnore
    private Timestamp startDate;
    @ExcelIgnore
    private Timestamp endDate;
    @ExcelIgnore
    private String place;
    @ExcelIgnore
    private String institution;
    @ExcelIgnore
    private String jiaocai;
    @ExcelIgnore
    private String application;
    @ExcelIgnore
    private String payment;
    @ExcelIgnore
    private String paymentStatus;
    @ExcelIgnore
    private Date creatTime;
    @ExcelIgnore
    private Date updateTime;
    @ExcelIgnore
    private String deleflag;
    @ExcelIgnore
    private String orderNo;
    @ExcelIgnore
    private String transactionId;
    @ExcelIgnore
    private String payChannel;
    @ExcelIgnore
    private String paymentTime;

    //  @Email(message = "邮箱格式不正确")
    @ExcelIgnore
    private String email;
    @ExcelIgnore
    private String teacherId;

}